home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / olrdrs / qwkndt1a.zip / WWIVMAIL.SCR < prev    next >
Text File  |  1992-11-06  |  1KB  |  46 lines

  1. # Sample script for logging on to a WWIV board running WWIVmail.
  2. # replace YOURNAME, YOURPASS, and YOURPHONE with your name or handle,
  3. # your password, and the last four digits of your phone number.
  4. # This is only a model, and will probably need to be modified to
  5. # some degree.
  6. #
  7. timeout 2
  8. send " "
  9. EXPECT "NN:" " " 10
  10. send "YOURNAME\r"
  11. expect "PW:"
  12. send "YOURPASS\r"
  13. expect "PH:"
  14. send "YOURNUM\r"
  15. # Wait for main menu prompt. Keep spacebarring anything else.
  16. expect ") :" " " 5
  17. # Go into chain section.
  18. send "."
  19. # Wait for chains prompt. Spacebar anything else.
  20. expect ") :" " " 5
  21. # Run chain number 5 (this will vary, of course).
  22. send 5
  23. # Jack up timeout value. Sometimes takes a while if there are a lot of
  24. # msgs to pack up.
  25. timeout 60
  26. # Begin upload .REP section.
  27. repbegin
  28. # Wait for WWIVmail prompt.
  29. expect ")>" "\r" 2
  30. # Choose "upload .REP packet" option
  31. send 3
  32. # Wait for transfer protocol to fire up.
  33. expect "MODEM"
  34. # Upload it.
  35. upload
  36. # End upload .REP section.
  37. repend
  38. # Wait for WWIVmail prompt.
  39. expect ")>" "\r" 2
  40. # Choose "Download .QWK packet and log off" option.
  41. send 2
  42. # Wait for transfer protocol to start up.
  43. expect "MODEM"
  44. # Download that puppy!
  45. download
  46.